//
//  ProductDetailViewController.h
//  iShop
//
//  Created by svp on 17/12/2011.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Shop.h"
#import "Product.h"
#import "WishlistRequest.h"

@interface ProductDetailViewController : UIViewController<UIScrollViewDelegate, UIActionSheetDelegate,WebRequestDelegate> {
	UIBarButtonItem *_purchaseButton;
	UIScrollView* _scrollView;
    UIPageControl* _pageControl;
	BOOL pageControlBeingUsed;
	UIView *_infoView;
	int _productimagecount;
	UIToolbar *_toolbar;
	BOOL _isHideToolbar;
	
	Shop *_shop;
	Product *_product;
	UILabel *_refNumber;
	UIButton *_btnPromo;
}

@property (nonatomic, retain) IBOutlet UIScrollView* scrollView;
@property (nonatomic, retain) IBOutlet UIPageControl* pageControl;
@property(nonatomic,retain) IBOutlet UIBarButtonItem *purchaseButton;
@property(nonatomic,retain) IBOutlet UIView *infoView;
@property(nonatomic,retain) IBOutlet UIToolbar *toolbar;
@property(nonatomic,retain) IBOutlet UILabel *refNumber;
@property(nonatomic,retain) IBOutlet UIButton *btnPromo;
@property (nonatomic, assign) Shop *shop;
@property (nonatomic, assign) Product *product;
@property (nonatomic, retain) IBOutlet UIBarButtonItem *hobbiesButton;
@property (nonatomic, retain) IBOutlet UIBarButtonItem *functionButton;

-(IBAction) homePress:(id) sender;
-(IBAction) purchasePress:(id) sender;
-(IBAction) openHobbies:(id) sender;
-(IBAction) openComments:(id) sender;
-(IBAction) openInfo:(id) sender;
-(IBAction) openPromotion:(id) sender;

- (IBAction)changePage;
-(void) setHideToolbar:(BOOL)hide;

@end
